package com.zdb.demo.design.principle.singleresponsibility;

public abstract class Bird {

//    public void mainMoveMode(String name) {
////        System.out.println(name + "用翅膀飞");
//        if("鸵鸟".equalsIgnoreCase(name)) {
//            System.out.println(name + "用脚走");
//        } else {
//            System.out.println(name + "用翅膀飞");
//        }
//    }

    public abstract void mainMoveMode(String name);
}
